package apps;

public class Account {
	private double amount = 0;

	public double getAmount() {
		return amount;
	}

	public void setAmount(double amount) {
		this.amount = amount;
	}
	
	public double getBalance()
	{
		return amount;
	}
	
	public void deposit(double value)
	{
		if(value > 0)
		{
			amount += value;
		}
	}
	
	public void addInterest(double percent)
	{
		amount *= (1 + percent/100);
	}
}
